package com.yao_shop.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface file_mapper {
    @Select("select * from imgurl")
    List<Map> selecturl(Map map);

    @Insert("insert into imgurl(url,imgname,imginfo) values (#{url},#{imgname},#{imginfo})")
    void add_file(Map map);
}
